<jsp:include page="/vista/ittsa/busbannersup.jsp"></jsp:include>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="WEB-INF/struts-html" prefix="html"%>
<%@ taglib uri="WEB-INF/struts-logic" prefix="logic"%>
<%@ taglib uri="WEB-INF/struts-bean" prefix="bean"%>
<%@ taglib uri="WEB-INF/struts-nested.tld" prefix="nested"%>
<%@ taglib uri="WEB-INF/displaytag" prefix="display"%>
<%@ page import="java.util.*"%>
<%@ page import="java.lang.*"%>
<%@page import="pe.com.certicom.ittsa.model.bean.*"%>
<%@page import="pe.com.certicom.ittsa.control.action.*"%>
<%@page import="pe.com.certicom.ittsa.control.form.*"%>
<html>
<head>
<link href="vista/css/table.css" type="text/css" rel="stylesheet"></link>
<script type="text/javascript" src="vista/js/jquery-1.7.1.min.js"></script>
<script language="javascript" type="text/javascript">
	function irMenuDispAsiento() {
		document.getElementsByName("method")[0].value = "11";
		document.forms[0].submit();
		return true;
	}
	function irMenuInicio() {
		document.getElementsByName("method")[0].value = "10";
		document.forms[0].submit();
		return true;
	}
	$(document).ready(function() {
		$(".reporte tr").mouseover(function() {
			$(this).addClass("over");
		}).mouseout(function() {
			$(this).removeClass("over");
		});
		$(".reporte tr:even").addClass("odd");
	});

</script>
</head>
<body>
	<div id="content">
		<br>
		<h1>Disponibilidad de Asientos</h1>
		<html:form action="/DispAsiento.do" method="post"
			enctype="multipart/form-data">
			<input type="hidden" name="method">
			<%
				int ctr = 1;
			%>
			<div id="scroll">
			<table class="reporte" >
				<logic:present name="DispAsientoForm"
					property="listaReporteDispAsiento">
					<thead>
						<tr>
							<th>No</th>
							<th>Servicio</th>
							<th>Origen</th>
							<th>Destino</th>
							<th>Hora</th>
							<th>Precio Piso 1</th>
							<th>Precio Piso 2</th>
							<th>Asientos Disponibles</th>
						</tr>
					</thead>
					<tbody>
						<logic:iterate name="DispAsientoForm"
							property="listaReporteDispAsiento" id="rep"
							type="pe.com.certicom.ittsa.model.bean.ReporteDispAsientoBean">
							<tr align="center">
								<td><%=ctr++%></td>
								<td><bean:write name="rep" property="servicio" /></td>
								<td><bean:write name="rep" property="origen" /></td>
								<td><bean:write name="rep" property="destino" /></td>
								<td><bean:write name="rep" property="hora" /></td>
								<td><bean:write name="rep" property="costo1ro" /></td>
								<td><bean:write name="rep" property="costo2do" /></td>
								<td class="fin"><bean:write name="rep" property="disponibles" /></td>
							</tr>
						</logic:iterate>
					</tbody>
				</logic:present>
			</table>
			</div>
			<br>
			<div align="center">
						<button onclick="return irMenuDispAsiento();" class="btnRegresar"></button>
						<button onclick="return irMenuInicio();" class="btnInicio"></button>
			</div>
		</html:form>
	</div>
</body>
</html>




